<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../rollup/dist/monitor.js"></script>
    <script>
      monitor.init({
        url: 'http://localhost:9010/reportData',
      });
    </script>
  </head>
  <body>
    <img src="http://toutiao.com/x.png" alt="" srcset="" />
    <img src="http://toutiao.com/x2.png" alt="" srcset="" />
    <img src="http://toutiao.com/x3.png" alt="" srcset="" />

    <script>
      const test = () => {
        return Promise.reject([Error('promise')]);
      };
      const test1 = () => {
        return Promise.reject([Error('async')]);
      };

      test();
      test1();

      throw Error('test');
    </script>
  </body>
</html>
